<template>
  <q-page class="q-pa-md">
    <div ref="iframeContainer"></div>
  </q-page>
</template>

<script>
export default {
  name: 'EmbedPage',
  methods: {
    loadIframe() {
      const iframe = document.createElement('iframe');
      iframe.style.width = "100%";
      iframe.style.height = "1400px"; // 根据需要调整高度
      iframe.style.border = "none";
      iframe.src = "knowledgeGraph.html";
      this.$refs.iframeContainer.appendChild(iframe);
    }
  },
  mounted() {
    this.loadIframe();
  }
}
</script>
